package com.sky.mapper;


import com.sky.anno.AutoFill;

import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;

import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishMapper {
    @AutoFill(OperationType.INSERT)
    void insert(Dish dish);

    List<DishVO> pageQuery(DishPageQueryDTO dishPageQueryDTO);

    DishVO getById(Long id);

    @AutoFill(OperationType.UPDATE)
    void update(Dish dish);

    void startOrStop(Dish dish);

   List<Dish> list(Long categoryId);


    void delete(Long id);

}

